
package com.zelix;

import java.io.*;
import java.util.*;


class z5 extends kt
    implements sm
{

    private boolean j;
    private String k;
    private zs l;
    private a6 m;
    private ou n;
    private static String z[];

    z5(b6 b6, jb jb, qy qy1)
        throws IOException, dc
    {
        super(b6);
label0:
        {

            j = true;
            int i = jb.readUnsignedShort();
            is is1 = a(i);
            if(is1 != null && (is1 instanceof zs))
            {
                l = (zs)is1;
                qy1.b(l, this);
                if(kt.i == 0)
                    break label0;
            }
            j = false;
            k = z[2] + i + (is1 == null ? "" : z[0] + is1.l());
            return;
        }
        m = new a6(this, jb, qy1);
        if(!m.b())
        {
            j = false;
            k = z[1] + m.a();
            return;
        } else
        {
            return;
        }
    }

    public void b(Hashtable hashtable)
    {
        m.b(hashtable);
    }

    public void a(zs zs1, zs zs2)
    {
        if(l == zs1)
            l = zs2;
    }

    public String a()
    {
        return k;
    }

    public boolean b()
    {
        return j;
    }

    public void a(mt mt, HashSet hashset, HashSet hashset1, HashSet hashset2, HashSet hashset3)
    {
        if(mt != null && n != null)
            hashset3.add(n);
        m.a(hashset, hashset1, hashset2, hashset3);
    }

    void a(HashSet hashset)
    {
        m.a(hashset);
    }

    void a(Hashtable hashtable)
    {
        hashtable.put(l, this);
        m.a(hashtable);
    }

    public void a()
    {
        if(n != null && !n.w().equals(l.b()))
            l.a(n.w());
        m.f();
    }

    public void a(mt mt, yg yg)
    {
        if(mt != null)
        {
            String s = l.b();
            String s1 = m.b();
            if(s1 != null)
                n = (ou)mt.a(new dp(s, z[3], s1));
            if(n == null)
            {
                ArrayList arraylist = mt.e(s);
                if(arraylist.size() == 1)
                    n = (ou)arraylist.get(0);
            }
        }
        m.a(yg);
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable, nh nh)
        throws IOException, tb
    {
label0:
        {
            zs zs1 = (zs)hashtable.get(l);
            if(zs1 != null)
            {
                dataoutputstream.writeShort(zs1.j());
                if(kt.i == 0)
                    break label0;
            }
            dataoutputstream.writeShort(l.j());
        }
        m.a(dataoutputstream, hashtable, nh);
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x62;
                    break;
                case 1:
                    key =86;
                    break;
                case 2:
                    key =87;
                    break;
                case 3:
                    key =71;
                    break;
                default:
                    key = 109;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[];
        as = new String[4];
        as[0] = z("Blw3\f\005k".toCharArray());
        as[1] = z("+8!&\001\0132w$\002\017&8)\b\f\"w1\f\016#2gWB".toCharArray());
        as[2] = z("+8!&\001\0132w$\002\017&8)\b\f\"w)\f\0173w.\003\0063/gWB".toCharArray());
        as[3] = z("J\177".toCharArray());
        z = as;

    }
}
